package com.icode.jaxws;

import javax.jws.WebService;

/**
 * Created with IntelliJ IDEA.
 * User: ZhongGang
 * Date: 14-6-28
 * Time: 上午1:18
 */
@WebService(endpointInterface = "com.icode.jaxws.Function",
        targetNamespace = "http://integer.function.jaxws.icode.com")
public class IntegerFunction implements Function<Integer> {

    @Override
    public Integer add(Integer t1, Integer t2) {
        return t1 + t2;
    }

    @Override
    public Integer subtract(Integer t1, Integer t2) {
        return t1 - t2;
    }

    @Override
    public Integer multiply(Integer t1, Integer t2) {
        return t1 * t2;
    }

    @Override
    public Integer divide(Integer t1, Integer t2) {
        return t1 / t2;
    }
}
